package com.xing.demo;

import java.util.Scanner;

public class switch多重选择 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入您的名次");

        int num = input.nextInt();
        switch (num){
            case 1:
                System.out.println("奖励一部iPhone13");
                break;
            case 2:
                System.out.println("奖励一个机械键盘");
                break;
            case 3:
                System.out.println("奖励一个优盘");
                break;
            default:
                System.out.println("奖励一张彩票");
                break;

        }
    }
}
